package com.un.ebs.customer.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * <p>
 * Add dto.
 * </p>
 *
 * @author liubo
 * @since 2019-09-24
 */
@Data
public class DefunctAddDto {

    @NotNull(message = "使用者名称不能为空。")
    private String name;

    private Integer sex;

    private Date birthday;

    private Date defunctDate;

    @Pattern(regexp = "(^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$)|(^[1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}$)", message = "请填写有效的身份证码！")
    private String idNumber;

    private String areaId;

    private String address;

    private String defunctTypeDict;

    private String defunctAddDict;

    private String defunctIdNumber;

    private String tombSkuId;

}